import i18n from '@/utils/i18n'
export const formItems = [
  {
    filed: 'orderId',
    type: 'input',
    label: i18n.t('message.ddbh')
  },
  {
    filed: 'memberKey',
    type: 'input',
    label: i18n.t('message.memberInfo'),
    placeholder: i18n.t('message.hy3')
  },
  {
    filed: 'coinsId',
    type: 'select',
    label: i18n.t('message.shibei'),
    placeholder: i18n.t('message.qb'),
    options: []
  },
  {
    filed: 'fromType',
    type: 'select',
    label: i18n.t('message.jyxt'),
    placeholder: i18n.t('message.shibei'),
    options: [
      { value: '01', label: i18n.t('message.cgxcx') },
      { value: '02', label: i18n.t('message.sbcs') }
    ]
  },
  {
    filed: 'payMethod',
    type: 'select',
    label: i18n.t('message.zffs'),
    placeholder: i18n.t('message.qb'),
    options: []
  },
  {
    filed: 'payStatus',
    type: 'select',
    label: i18n.t('message.ddzt'),
    placeholder: i18n.t('message.qb'),
    labelCode: 'name',
    options: []
  },
  {
    filed: 'issendCoin',
    type: 'select',
    label: i18n.t('message.cbzt'),
    placeholder: i18n.t('message.qb'),
    options: [
      { value: '0', label: i18n.t('message.wcb') },
      { value: '1', label: i18n.t('message.ycb') }
    ]
  }
]
export const queryFormConfig = {
  formItems,
  online: true
}
export const ContentConfig = {
  propList: [
    { prop: 'orderId', label: i18n.t('message.ddbh'), minWidth: '220', slotName: 'orderId' },
    { prop: 'info', label: i18n.t('message.spxx'), minWidth: '120' },
    { prop: 'originalPrice', label: i18n.t('message.price') + '(' + i18n.t('message.yuan') + ')', minWidth: '80' },
    { prop: 'realPrice', label: i18n.t('message.sfk') + '(' + i18n.t('message.yuan') + ')', minWidth: '100' },
    { prop: 'coinsName', label: i18n.t('message.shibei'), minWidth: '160' },
    { prop: 'memberInfo', label: i18n.t('message.memberInfo'), minWidth: '180' },
    { prop: 'fromType', label: i18n.t('message.jyxt'), minWidth: '110', slotName: 'system' },
    { prop: 'payMethod', label: i18n.t('message.zffs'), minWidth: '100' },
    { prop: 'payTime', label: i18n.t('message.paytime'), minWidth: '160' },
    { prop: 'createTime', label: i18n.t('message.xdsj'), minWidth: '160' },
    { prop: 'payStatus', label: i18n.t('message.ddzt'), minWidth: '100', slotName: 'orderStatus', fixed: 'right' },
    { prop: 'issendCoin', label: i18n.t('message.cbzt'), minWidth: i18n.locale === 'ZH' ? '100' : '210', slotName: 'status', fixed: 'right' },
    { prop: '11', label: i18n.t('message.caozuo'), minWidth: i18n.locale === 'ZH' ? '100' : '140', slotName: 'handler', fixed: 'right' }
  ]
}
